<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<div id="menuCliente">
		<ui:include src="/pagine_clienti/commonHeader.xhtml" />
	</div>
</h:head>
<h:body>
	<h:form>
		<p:dataList value="#{userBean.pacchettiPrenotati}" var="packDTO"
			paginator="true" rows="5"
			paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"
			rowsPerPageTemplate="5,10,15" type="none">

			<f:facet name="header">  
               Prenotazioni Effettuate 
            </f:facet>
            
			<h:outputText
				value= "#{packDTO.nomePacchetto}, #{packDTO.luogo}, 
						#{hotelBean.getHotelId(packDTO.idhotel).nome},
						#{escurBean.getResultId(packDTO.idescursione).get(0).nome}"
				style="margin-left:10px">
			</h:outputText>	
			<h:outputText value=" dal "/>
			<h:outputText value ="#{packDTO.dataPartenza}">
				<f:convertDateTime type = "date"/>
			</h:outputText>
			<h:outputText value=" al "/>
			<h:outputText value ="#{packDTO.dataRitorno}">
				<f:convertDateTime type = "date"/>
			</h:outputText>
			

			<br />
		</p:dataList>




	</h:form>

</h:body>

</html>